from fake_useragent import UserAgent
import requests


def r():
    headers = {
        'user-agent': UserAgent().random
    }
    tag_url = 'http://127.0.0.1:8000/api/v5/books/'
    r = requests.get(tag_url, headers=headers)
    print(r.json())


for i in range(50):
    r()
